<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>个案信息查询管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
 
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		 function reset(){
				$("#searchForm").reset();
				var selectVal = $("form:select");
				for(var i=0;i<selectVal.lengeth;i++){
					selectVal[i].options[0].selected= true;
				}
		} 
	</script>
	<style type="text/css">
		.minWidth {
			min-width: 177px;
		}	
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/child/childBaseinfoByAny/">任意变量询列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="childBaseinfo" action="${ctx}/child/childBaseinfoByAny/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<div class="breadcrumb">
		<table class="table table-bordered">	
			<tr>
			
				<th>儿童姓名：</th>
				<td><form:input path="childname" htmlEscape="false" maxlength="26" class="input-medium"/></td>
				<th>儿童编码：</th>
				<td><form:input path="childcode" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>受种者身份证：</th>
				<td><form:input path="cardcode" htmlEscape="false" maxlength="50" class="input-medium"/></td>
			</tr>
			
			
			<tr>
<!-- 				<th>出生证编码：</th> -->
<%-- 				<td><form:input path="childcode" htmlEscape="false" maxlength="50" class="input-medium"/></td> --%>
				<th>儿童性别：</th>
					<td>
						<form:select path="gender" class="span2 minWidth">
						<form:option value="" label="">--请选择--</form:option>
						<form:options items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</form:select>
					</td>
				<th>出生日期：</th>
				<td><input name="birthday" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${childBaseinfo.birthday}" pattern="yyyy-MM-dd"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/></td>
			</tr>
			
			
			
			
			<tr>
<!-- 				<th>出生时间：</th> -->
<!-- 					<td ><input name="birthday" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate" -->
<%-- 						value="<fmt:formatDate value="${childBaseinfo.birthday}" pattern="HH:mm:ss"/>" --%>
<!-- 						onclick="WdatePicker({dateFmt:'HH:mm:ss',isShowClear:true});"/></td> -->
				<th>出生医院：</th>
					<td><form:input path="birthhostipal" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>胎次：</th>
					<td><form:input path="childorder" htmlEscape="false" maxlength="2" class="input-medium"/></td> 
			</tr>
			<tr>
				<th>民族：</th>
				<td>
					<form:select path="nation" class="span2 minWidth">
						<form:option value="" label="">--请选择--</form:option>
						<form:options items="${fns:getDictList('nation')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
				</td>
				<th>出生体重：</th>
				<td><form:input path="birthweight" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>居住通讯地址：</th>
				<td><form:input path="mailingaddress" htmlEscape="false" maxlength="50" class="input-medium"/></td>
			</tr>
			<tr>
				<th>户籍类型：</th>
				<td >
					<form:select path="reside" class="span2 minWidth">
						<form:option value="" label="">--请选择--</form:option>
						<form:options items="${fns:getDictList('reg_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
					</td>
<!-- 				<th>户口所在地编码：</th> -->
<%-- 				<td><form:input path="properties" htmlEscape="false" maxlength="50" class="input-medium"/></td> --%>
<!-- 				<th>家庭电话：</th> -->
<%-- 				<td><form:input path="upstatus" htmlEscape="false" maxlength="1" class="input-medium"/></td>  --%>
			</tr>
			<tr>
				<th>地区：</th>
				<td ><form:input path="area" htmlEscape="false" maxlength="32" class="input-medium"/></td>
				<th>建卡日期：</th>
				<td><input name="createdate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${childBaseinfo.createdate}" pattern="yyyy-MM-dd"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/></td>
				<th>健康档案编号：</th>
				<td><form:input path="tempid" htmlEscape="false" maxlength="200" class="input-medium"/></td>
			</tr>
			<tr>
				<th>母亲姓名：</th>
				<td ><form:input path="guardianname" htmlEscape="false" maxlength="32" class="input-medium"/></td>
 				<th>母亲身份证：</th>
				<td><form:input path="guardianidentificationnumber" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>母亲手机：</th>
				<td><form:input path="guardianmobile" htmlEscape="false" maxlength="11" class="input-medium"/></td>
			</tr>
			<tr>
<!-- 				<th>母亲单位：</th> -->
<%-- 				<td ><form:input path="tempid" htmlEscape="false" maxlength="32" class="input-medium"/></td> --%>
<!-- 				<th>母亲HB：</th> -->
<!-- 				<td> -->
<%-- 					<form:select path="properties" class="input-medium"> --%>
<%-- 						<form:option value="" label="">--请选择--</form:option> --%>
<%-- 						<form:options items="${fns:getDictList('HB_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 					</form:select> --%>
<!-- 				</td> -->
<!-- 				<th>接种条形编码：</th> -->
<%-- 				<td><form:input path="upstatus" htmlEscape="false" maxlength="1" class="input-medium"/></td> --%>
			</tr>
			<tr>
<!-- 				<th>短信定制：</th> -->
<%-- 				<td ><form:input path="tempid" htmlEscape="false" maxlength="32" class="input-medium"/></td> --%>
				<th>父亲姓名：</th>
				<td><form:input path="father" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>父亲身份证：</th>
				<td><form:input path="fathercard" htmlEscape="false" maxlength="16" class="input-medium"/></td>
			</tr>
			<tr>
				<th>父亲手机号：</th>
				<td ><form:input path="fatherphone" htmlEscape="false" maxlength="11" class="input-medium"/></td>
<!--  				<th>父亲单位：</th> -->
<%-- 				<td><form:input path="area" htmlEscape="false" maxlength="50" class="input-medium"/></td> --%>
<!-- 				<th>禁忌症：</th> -->
<!-- 				<td> -->
<%-- 					<form:select path="properties" class="input-medium"> --%>
<%-- 						<form:option value="" label="">--请选择--</form:option> --%>
<%-- 						<form:options items="${fns:getDictList('ill_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 					</form:select> --%>
<!-- 				</td> -->
			</tr>
			<tr>
<!-- 				<th>传染病史：</th> -->
<!-- 				<td > -->
<%-- 					<form:select path="properties" class="input-medium"> --%>
<%-- 						<form:option value="" label="">--请选择--</form:option> --%>
<%-- 						<form:options items="${fns:getDictList('ill_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 					</form:select> --%>
<!-- 				</td> -->
<!-- 				<th>过敏史：</th> -->
<!-- 				<td> -->
<%-- 					<form:select path="properties" class="input-medium"> --%>
<%-- 						<form:option value="" label="">--请选择--</form:option> --%>
<%-- 						<form:options items="${fns:getDictList('ill_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 					</form:select> --%>
<!-- 				</td> -->
<!-- 				<th>不良反应史：</th> -->
<!-- 				<td> -->
<%-- 					<form:select path="properties" class="input-medium"> --%>
<%-- 						<form:option value="" label="">--请选择--</form:option> --%>
<%-- 						<form:options items="${fns:getDictList('ill_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 					</form:select> --%>
<!-- 				</td> -->
			</tr>
			<tr>
<!-- 				<th>社保号：</th> -->
<%-- 				<td ><form:input path="tempid" htmlEscape="false" maxlength="32" class="input-medium"/></td> --%>
				<th>包含迁出个案：</th>
				<td>
					<form:radiobuttons path="localtype" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" class="input-medium"/>
				</td>
				<th>起始更新日期：</th>
				<td><input name="updatedate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${childBaseinfo.updatedate}" pattern="yyyy-MM-dd"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/></td>
			</tr>
			<tr>
				<th>状态：</th>
				<td >
					<form:select path="situation" class="span2 minWidth">
						<form:option value="" label="">--请选择--</form:option>
						<form:options items="${fns:getDictList('child_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
				</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</table>
	</div>
		<ul class="ul-form breadcrumb">
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input onclick="reset()"  class="btn btn-primary" type="button" value="重置"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>操作</th>
				<th>儿童姓名</th>
				<th>儿童编码</th>
				<th>性别 </th>
				<th>出生日期</th>
				<th>母亲姓名</th>
				<th>父亲姓名</th>
				<th>在册情况</th>
				<th>户口属性</th>
				<th>居住属性</th>
				<th>户口地址详细地址</th>
				<th>最后修改时间（默认创建时间）</th>
				<shiro:hasPermission name="child:childBaseinfo:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="childBaseinfo">
			<tr>
				<td>
					<span><input type="checkbox" /></span>
				</td>
				<td>
					${childBaseinfo.childname}
				</td>
				<td><a href="${ctx}/child/childBaseinfo/form?id=${childBaseinfo.id}">
					${childBaseinfo.childcode}
				</a></td>
				<td>
					${fns:getDictLabel(childBaseinfo.gender, "sex", "")}
				</td>
				<td>
					<fmt:formatDate value="${childBaseinfo.birthday}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${childBaseinfo.guardianname}
				</td>
				<td>
					${childBaseinfo.father}
				</td>
				<td>
					${childBaseinfo.situation}
				</td>
				<td>
					${fns:getDictLabel(childBaseinfo.properties, "properties", "")}
				</td>
				<td>
					${fns:getDictLabel(childBaseinfo.reside, "reside", "")}
				</td>
				<td>
					${childBaseinfo.regaddress}
				</td>
				<td>
					<fmt:formatDate value="${childBaseinfo.updatedate}" pattern="yyyy-MM-dd"/>
				</td>
				<shiro:hasPermission name="child:childBaseinfo:edit"><td>
    				<a href="${ctx}/child/childBaseinfo/form?id=${childBaseinfo.id}">修改</a>
					<a href="${ctx}/child/childBaseinfo/delete?id=${childBaseinfo.id}" onclick="return confirmx('确认要删除该个案信息查询吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>